home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
machack
/
Hacks97
/
WarriorsProgress.sit
/
Warrior’s Progress
/
source code
/
Source
/
Libraries
/
Processes
/
ProcessLoop.cp
< prev
next >
Wrap
Text File
|
1997-06-28
|
597b
|
31 lines
// ProcessLoop.cp
#ifndef ProcessLoop_h
#include "ProcessLoop.h"
#endif
#ifndef ProcessError_h
#include "ProcessError.h"
#endif
const ProcessSerialNumber ProcessLoop::noProcess = { 0, kNoProcess };
ProcessLoop::ProcessLoop()
: process( noProcess ),
finished( false )
{
operator++();
}
void ProcessLoop::operator++()
{
ProcessSerialNumber number( process.Number() );
ProcessError( GetNextProcess( &number ) ).Throw();
if ( number.highLongOfPSN == noProcess.highLongOfPSN
&& number.lowLongOfPSN == noProcess.lowLongOfPSN )
finished = true;
else
process = number;
}